<!--# layout("/common/layout.html",{"jsBase":"/js/admin/config/"}){ -->

<form class="layui-form layui-form-pane" id="updateForm">
    <div class="layui-row">
		<div class="layui-form-item">
			<label class="layui-form-label">标题</label>
			<div class="layui-input-block">
				<input type="text" name="title" id="title" autocomplete="off" placeholder="请输入标题" class="layui-input" value="${config.title!}">
			</div>
		</div>
	</div>
	<div class="layui-row margin-top">
		<layui:image name="imageId" batchFileUUID="${config.imageId!uuid()}" isNew="false" bizId="${config.id!}" bizType="CoreConfig"/>
	</div>
	<div class="layui-row margin-top margin-bottom">
		<layui:attachment name="attachmentId" batchFileUUID="${config.attachmentId!uuid()}" isNew="false" bizId="${config.id!}" bizType="CoreConfig"/>
	</div>
	<layui:submitButtons class="updateButton" />
	<div class="layui-row margin-top">
		<div class="layui-form-item">
			<label class="layui-form-label">内容（中文）</label>
			<div class="layui-input-block">
				<textarea rows="1" cols="1" name="content" class="layui-input kindEditor">${config.content! }</textarea>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">内容（英文）</label>
			<div class="layui-input-block">
				<textarea rows="1" cols="1" name="contentEn" class="layui-input kindEditor">${config.contentEn! }</textarea>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">内容（意文）</label>
			<div class="layui-input-block">
				<textarea rows="1" cols="1" name="contentIt" class="layui-input kindEditor">${config.contentIt! }</textarea>
			</div>
		</div>
    </div>
	<!-- 业务对象须有hidden字段，保存delFlag和version字段-->
	<input type="hidden" name="delFlag" value="${config.delFlag!} " />
    <input type="hidden" name="id" value="${config.id!}" />
    <layui:submitButtons class="updateButton" />
</form>
<!--#} -->
<!--# if (has(config) == true) {  -->
<script>
layui.use(['edit'], function(){
    var configEdit = layui.edit
    configEdit.init();
});
</script>
<!--# } -->
<!--# if (has(config) == false) {  -->
<script>
layui.use(['add'], function(){
    var configAdd = layui.add
    configAdd.init();
});
</script>
<!--# } -->